#include<iostream>

using namespace std;

class Stack {
public:
	void Init(int defaultCapacity=4 ) {
		a = (int*)malloc(sizeof(int) * defaultCapacity);
		capacity = defaultCapacity;
		top = 0;
	}
	void Push(int x) {
		a[top++] = x;
	}
	void Destory() {
		free(a);
		a = nullptr;
	}
private:
	int* a;
	int top;
	int capacity;
};

class Date {
public:
	void print() {
		cout << year << " " << mon << " " << day;
	}
	void init() {
		year = 1;
		mon = 2;
		day = 3;
	}
private:
	int year;
	int mon;
	int day;
};
int main() {
	Date d;
	d.init();
	d.print();
	return 0;
}